<link href="../../asset/css/member.css"      rel="stylesheet" type="text/css"/>
<link href="/application/layui/css/layui.css" rel="stylesheet" type="text/css"/>


<div class="mail">


    <form id="edit-member-form" method="post"
          action="../send-emil-function.php"
          enctype="multipart/form-data" class="layui-form">
    <div class="layui-form-item">
        <label class="layui-form-label">收件人</label>
        <div class="layui-input-block">
            <input type="text" name="mail_email" autocomplete="off" class="layui-input" value="<?echo $_REQUEST['email']?>">
        </div>
    </div>
        <input type="hidden" name="ai_membernid" value="<?echo $_REQUEST['menberId']?>" >
        <input type="hidden" name="agentnid" value="<?echo $_REQUEST['agentnId']?>" >
        <input type="hidden" name="ai_unitnid" value="<?echo $_REQUEST['unitnId']?>" >
    <div class="layui-form-item">
        <label class="layui-form-label">主题</label>
        <div class="layui-input-block">
            <input type="text" name="mail_theme" autocomplete="off" class="layui-input" value="这是一封来自xxx的邮件">
        </div>
    </div>




    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">内容</label>
        <div class="layui-input-block">
            <textarea name="ai_content" placeholder="请输入详细内容" class="layui-textarea"> </textarea>
        </div>
    </div>



    <div class="function">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit   type="submit">发送</button>
<!--            <button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
        </div>
    </div>
    </form>

</div>
<script src="/application/keditor/kindeditor-all.js"></script>
<script>
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('textarea[name="mail_content"]', {
            width : '550px',
            height : '400px',
            items : [
                'source', '|', 'undo', 'redo', '|', 'cut', 'copy', 'paste',
                'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
                'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
                'superscript', 'clearhtml', 'fullscreen',
                'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
                'italic', 'underline', 'strikethrough', 'lineheight', 'removeformat','media','image', 'multiimage'
            ],
            allowFileManager: true,
            afterBlur: function () { editor.sync(); },
            allowFileManager: true,
            filterMode : false
        });

    });
</script>
